﻿Imports System.Windows.Controls
Imports System.Windows

Public Class Editor
    Inherits Control

    Shared Sub New()

    End Sub



    Public Property Value As Object
        Get
            Return GetValue(ValueProperty)
        End Get

        Set(ByVal value As Object)
            SetValue(ValueProperty, value)
        End Set
    End Property

    Public Shared ReadOnly ValueProperty As DependencyProperty = _
                           DependencyProperty.Register("Value", _
                           GetType(Object), GetType(Editor), _
                           New FrameworkPropertyMetadata(Nothing))


    Public Property EditModeTemplate As ControlTemplate
        Get
            Return GetValue(EditModeTemplateProperty)
        End Get

        Set(ByVal value As ControlTemplate)
            SetValue(EditModeTemplateProperty, value)
        End Set
    End Property

    Public Shared ReadOnly EditModeTemplateProperty As DependencyProperty = _
                           DependencyProperty.Register("EditModeTemplate", _
                           GetType(ControlTemplate), GetType(Editor), _
                           New FrameworkPropertyMetadata(Nothing))




    Public Property IsInEditMode As Boolean
        Get
            Return GetValue(IsIneditModeProperty)
        End Get

        Set(ByVal value As Boolean)
            SetValue(IsIneditModeProperty, value)
        End Set
    End Property

    Public Shared ReadOnly IsInEditModeProperty As DependencyProperty = _
                           DependencyProperty.Register("IsInEditMode", _
                           GetType(Boolean), GetType(Editor), _
                           New FrameworkPropertyMetadata(Nothing))




End Class
